package com.xing.game;

import com.xing.game.bean.api.Bean;
import com.xing.game.bean.api.BeanTypeRef;

import java.util.concurrent.ConcurrentHashMap;

@Bean(type = OnlineManagerBean.class)
public class OnlineManagerBean {


    private final ConcurrentHashMap<Integer, Player> onlinePlayers = new ConcurrentHashMap<>();

    @BeanTypeRef
    private FriendManagerBean friendManagerBean;


    private static class Player{

        private int id;
        private String name;
        private int level;


        private int upLevel(int ll) {
            this.level += ll;
            return ll;
        }
    }


}
